/*
 *   A CSS style sheet for INRIA Annual Activity Reports
 *
 *   V. Quint, 6 December 2007
 *
 *   Modified by Cr 2012
 *
 */

/* root element */

 raweb {
      font-size: 11pt;
      font-family: serif;
      margin: 2em;
counter-increment: cntimage;
    }

 raweb[year]:before {
      content: 'Version simplifiée du rapport ' attr(year);
      display: block;
margin-bottom: 1em;
    }

 raweb[year]:after {
      content: 'DRAFT : Version simplifiée du rapport ' attr(year) ' - Utiliser http://irabot.inria.fr/irabot pour obtenir la version avec la charte graphique Inria.';
margin-top: 2em;
margin-bottom: 2em;
     display: block;
text-align: center;

    }


/* front matter */

 identification {
      counter-reset: chapter 1;
    }

 accueil[isproject='true'] projet:before {
      content: "Project-Team ";
    }

  accueil[isproject='false'] projet:before {
      content: "Team ";
    }

 projet {
      display: block;
      font-style: italic;
      font-size: 180%;
      text-align: center;
      margin-top: 1em;
    }

 projetdeveloppe {
      display: block;
      font-style: italic;
      font-size: 150%;
      text-align: center;
      margin-top: 1em;
margin-bottom: 1em;
    }


 theme:before {
      content: "Theme: ";
      font-family: sans-serif;
    }
 
theme {
      font-family: sans-serif;
      display: block;
      text-align: center;
      margin-top: 3em;
    }

raweb p keywords:before {
      content: "Keywords: ";
      font-weight: bold;
    }


raweb  keywords {
margin-top: 1em;
      display: block;
      font-style: italic;
    }

 UR {
      position: absolute;
      top: 0em;
      right: 0em;
      display: block;
    }

 UR + UR {
      top: 3em;
    }
 UR + UR + UR {
      top: 4em;
    }

 xUR:before {
      content: attr(name);
    }

UR URGrenoble:before  { 
content: "Grenoble";
 position: absolute;
      top: 2em;
      right: 2em;
      display: block;
}


UR URSophia:before  { 
content: "Sophia";
 position: absolute;
      top: 2em;
      right: 2em;
      display: block;
}

UR URLille:before  { 
content: "Lille";
 position: absolute;
      top: 2em;
      right: 2em;
      display: block;
}

UR URRennes:before  { 
content: "Rennes";
 position: absolute;
      top: 2em;
      right: 2em;
      display: block;
}

UR URRennes:before  { 
content: "Rocquencourt";
 position: absolute;
      top: 2em;
      right: 2em;
      display: block;
}

UR URNancy:before  { 
content: "Nancy";
 position: absolute;
      top: 2em;
      right: 2em;
      display: block;
}

UR URSaclay:before  { 
content: "Saclay";
 position: absolute;
      top: 2em;
      right: 2em;
      display: block;
}

UR URBordeaux:before  { 
content: "Bordeaux";
 position: absolute;
      top: 2em;
      right: 2em;
      display: block;
}


/* team 
 
 xsection[titre=Team]:before {
      content: "1. Team";
      display: block;
      font-size: 150%;
      font-weight: bold;
margin-bottom: 0.5em;
    }
*/

xdiv3 > participants:before
{
 display: block;
content : "Participants ";

}

 pers:before  {
margin-bottom: 0.4em;
      content: "- " attr(prenom) " " attr(nom) " : ";
      display: inline;
      margin-left: 3em;
    }


section[name='composition'] > pers:before  {
margin-bottom: 0.4em;
      content: "- " attr(prenom) " " attr(nom) ", "  attr(affiliation) ", " attr(profession) " : " attr(hdr) " : ";
      display: inline;
      margin-left: 3em;
    }

section pers:
{  
display: inline;
margin-bottom: 1.5em;
}

section pers:after
{  
content: " ";
display: block;
margin-bottom: 0.4em;
}

 topic {
      display: block;
    }

figure:before
{ 
content: " [ Image nro " counter(cntimage) ": " attr(file) " ] ";
display: block;
 text-align: center;
      margin-top: 3em;
color: blue;
 }

figure > head
{ 
counter-increment: cntimage;
text-align: center;
display: block;
 margin-bottom: 3em;
}

 section[titre]:before {
      content: counter(chapter) ". " attr(titre) " ";
  font-size: 150%;
      font-weight: bold;
      xmargin-bottom: 1em;
margin-top: 1em;
display: block;
 }

section
{   
counter-increment: chapter;
counter-reset: subsection1;
}

section > module:before
{  
 content: counter(chapter) "." counter(subsection1) ". ";
 margin-bottom: 1em;
font-weight: bold;
margin-top: 1em;
xcolor: red;

}


section > module > head
{  
font-size: 100%;
      font-weight: bold;
      margin-bottom: 1em;
margin-top: 1em;
  display: inline;
color: red;
}

section > module > head:after
{  
content: " ";
margin-top: 0.3em;
margin-bottom: 0.5em;
  display: block;
xcolor: red;
}


xsection module:after
{ content: "fin section " attr(id); }


section module
{ 
    display: block;
      margin-top: 1em;
      counter-increment: subsection1;
    }

div1 > head
{ 
 margin-top: 0.5em;
 margin-bottom: 0.3em;
 display: block;
font-weight: bold;
}

div2 > head
{ 
 margin-top: 0.5em;
 margin-bottom: 0.3em;
 display: block;
font-weight: bold;
}

div3 > head
{ 
 margin-top: 0.5em;
 margin-bottom: 0.3em;
 display: block;
font-weight: bold;
}

xsection module head
{  
 margin-top: 1em;
font-size: 100%;
      font-weight: bold;
      margin-bottom: .4em;
 display: block;
counter-increment: subsection1;
}


xpresentation > bodyTitle,
 xfondements > bodyTitle,
 xdomaine > bodyTitle,
 xlogiciels > bodyTitle,
 xresultats > bodyTitle,
 xcontrats > bodyTitle,
 xinternational > bodyTitle,
 xdiffusion > bodyTitle {
      display: block;
      font-size: 150%;
      font-weight: bold;
      margin-bottom: .4em;
    }

 xpresentation > bodyTitle:before,
 xfondements > bodyTitle:before,
 xdomaine > bodyTitle:before,
 xlogiciels > bodyTitle:before,
 xresultats > bodyTitle:before,
 xcontrats > bodyTitle:before,
 xinternational > bodyTitle:before,
 xdiffusion > bodyTitle:before {
      content: counter(chapter) ". ";
    }

/* subsections */

 xsubsection {
      display: block;
      margin-top: 1em;
      counter-increment: subsection1;
      counter-reset: subsection2;
      counter-reset: subsection3;
    }
 xsubsection subsection {
      margin-top: .6em;
      counter-increment: subsection2;
      counter-reset: subsection3;
    }
 xsubsection subsection subsection {
      margin-top: 0;
      counter-increment: subsection3;
    }
 xsubsection > bodyTitle {
      display: block;
      font-size: 125%;
      font-weight: bold;
      margin-bottom: .4em;
    }
 xsubsection > bodyTitle:before {
      content: counter(chapter) "." attr(id_text) ". ";
    }
 xsubsection subsection > bodyTitle {
      font-size: 110%;
      font-weight: bold;
      font-style: italic;
    }
 xsubsection subsection > bodyTitle:before {
      content: counter(chapter) "." counter(subsection1) "."
               counter(subsection2) ". ";
    }
 xsubsection subsection subsection > bodyTitle {
      font-size: 100%;
      font-style: italic;
    }
 xsubsection subsection subsection > bodyTitle:before {
      content: counter(chapter) "." counter(subsection1) "."
               counter(subsection2) "." counter(subsection3) ". ";
    }
 xsubsection participants {
      display: block;
      margin-bottom: .4em;
    }
 xsubsection participants:before {
      content: "Participants: ";
      font-weight: bold;
    }
 xsubsection participants person {
      display: inline;
    }
 xsubsection participants person + person:before {
      content: ", ";
    }
 xkeyword + keyword:before {
      content: ", ";
      font-style: italic;
    }

module > p > keywords
{  
display: none;
}

 keyword {
      display: inline;
      font-style: italic;
    }
 participants + keyword:before {
      content: "Keywords: ";
      font-style: normal;
      font-weight: bold;
    }
 keyword + p {
      margin-top: .4em;
    }

/* inline elements */

 em {
      font-style: italic;
    }
 em[style=underline]{
      text-decoration: underline;
    }
 strong {
      font-weight: bold;
    }
 i {
      font-style: italic;
    }
 tt {
      font-family: fixed;
    }
 b {
      font-weight: bold;
    }
 big {
      font-size: 125%;
    }
 small {
      font-size: 80%;
    }
 sub {
      vertical-align: sub;
      font-size: 80%;
    }
 sup {
      vertical-align: super;
      font-size: 80%;
    }
 span[align=left] {
      text-align: left;
    }
 span[align=center] {
      text-align: center;
    }
 span[align=right] {
      text-align: right;
    }
 cit > ref {
      color: blue;
    }
cit >  ref[location=intern]:before {
      content: "[*]"
    }

cit > ref:before {
      content: "[" attr(target) "]"
    }


/* doc-block */


list[type='gloss'] > head
{ 
 font-weight: bold;
 list-style: disc outside;
}

list[type='gloss'] > label
{ 
 list-style: disc outside;
 xmargin-bottom: 2.5em;
}

list[type='gloss'] > item
{ 
list-style: decimal outside;
 font-style: italic;
}

list[type='gloss']:after
{ 
content: " ";
 display: block;
margin-bottom: 0.5em;
}



 list, simplelist, orderedlist {
      display: block;
      margin-left: 2em;
      margin-top: .5em;
    }

list[type=ordered] > item {
      list-style: disc outside;
      display: list-item;
      margin-bottom: .5em;
    }


list[type=simple] > item {
      list-style: disc outside;
      display: list-item;
      margin-bottom: .5em;
    }


 glosslist, descriptionlist {
      display: block;
      margin-top: .5em;
    }
 label {
      display: block;
    }
 glosslist > li {
      margin-bottom: .5em;
      margin-left: 2em;
    }
 descriptionlist > li {
      margin-bottom: .5em;
      margin-left: 2em;
    }
 p {
      display: block;
      text-indent: 1.5em;
 margin-bottom: .6em;

    }
 li > p {
      text-indent: 0;
    }
 p[noindent] {
      text-indent: 0;
    }


hi[rend='it']
{ 
 font-style: italic;
}

hi[rend='bold']
{ 
 font-weight: bold;
}

hi[rend='tt']
{ 
  font-variant: small-caps;
}





/* TODO: table, object, math */

/* bibliography */

 biblio:before {
      content: "Bibliography";
      display: block;
      font-size: 150%;
      font-weight: bold;
      margin-bottom: .4em;
margin-top: 1em;
counter-reset: bibliocounter;
    }

xraweb:after
{ 
margin-top: 0.5em;
margin-bottom: 0.5em;
content: "---------------------------------------------";
display: block;
text-align: center;
}

 citation {
 counter-increment: bibliocounter;
      display: block;
      margin-top: .8em;
    }

 citation[from="year"]:before {
      content: counter(bibliocounter) ' : [' attr(id) ']  publications of the year - ' attr(type);
 display: block;
    }

 citation[from="foot"]:before {
      content:  counter(bibliocounter) ' : [' attr(id) '] references in notes - ' attr(type);
 display: block;
    }

 citation[from="refer"]:before {
      content:  counter(bibliocounter) ' : [' attr(id) '] major publications - ' attr(type);
 display: block;
    }


 analytic, monogr {
      display: inline;
    }

 analytic:after {
      content: "in ";
    }

xcitation[from="year"]:before
{ 
content: 'Year ';
}

 citation > btitle {
      font-style: italic;
    }

btitle:after {
      content: ", ";
    }

bjournal:after {
      content: ", ";
    }

bbooktitle:after
{  
  content: ", ";
}

btype:after {
      content: ", ";
    }

bpages:before
{ 
 content: "pp. ";
}

bpages:after
{ 
 content: ", ";
}


bdoi:before
{ content: "DOI:";
font-style: italic;

 }
bdoi
{  
 font-style: italic;
}

bdoi:after
{ content: ", ";
 }

binstitution:after {
      content: ", ";
}


bnumber:before {
      content: "Nbr. ";
}

bnumber:after {
      content: ", ";
}

bvolume:before
{
content: "Vol. "; }

bvolume:after
{
content: ", "; }


bpublisher:after
{ 
content: ", "
 }

baddress:after
{ content: ", " }

bpers:before {
      font-variant: small-caps;
    }

bpers:after {
  font-variant: small-caps;
  content: attr(prenomcomplet)' ' attr(nom) ', ';
}


ref:before
{ 
content: '[sec]';
color: green;
}

xref
{ 
color: blue;
}

citation > xref:after
{ 
content: ", ";
}

xref:after
{ 
xcontent: " ";
}


x-editorial-board:before
{  
font-weight: normal;
content: 'editorial board: ';
}
x-editorial-board
{
font-weight: bold;
}
x-editorial-board:after
{ 
xfont-weight: bold;
content: ', ';
}

x-international-audience:before
{  
font-weight: normal;
content: 'international audience: ';
}
x-international-audience
{  
font-weight: bold;
}
x-international-audience:after
{  
xfont-weight: bold;
content: ', ';
}

x-proceedings:before
{  
font-weight: normal;
content: 'proceedings: ';
}
x-proceedings
{
font-weight: bold;
}
x-proceedings:after
{  
xfont-weight: bold;
content: ', ';
}


x-pays:before
{  
content: "authors countries: ";
}
x-pays:after
{  
content: ". ";
}


 citation bmonth:after {
      content: " ";
    }
 citation byear:after {
      content: ", ";
    }
 citation > note {
      display: none;
    }

/* the end */

